body{
    margin: 0;
    padding: 0;
    font-family: 'Baloo Paaji 2', cursive;
    background: url("../images/1.jpg");
    background-size: cover;
    background-position: center 0px;
    background-repeat: no-repeat;
    background-attachment: scroll;

}
.box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 400px;
    padding: 40px;
    background: rgba(225,225,225,.5);
    border-radius: 10px;
}
.box .register-field{
    position: relative;
}
.box .register-field input{
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    margin-bottom: 30px;
    border: none;
    outline: none;
    background: transparent;
}
.box .register-field label{
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 1px;
    padding: 10px 0;
    font-size: 16px;
    color: #ffffff;
    pointer-events: none;
    transition: .5s;
}
.box .register-field input:focus ~ label,
.box .register-field input:valid ~ label{
    top: -23px;
    left: 0;
    color: burlywood;
    font-size: 12px;
}
.box .register-field .underline{
    position: absolute;
    left: 0;
    bottom: 26px;
    height: 1px;
    width: 100%;
    background: #ffffff;
}
.register-field .underline:before{
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background: #4158D0;
    transform: scaleX(0);
    transition:transform 0.3s ease;
}

.register-field input:focus ~ .underline:before,
.register-field input:valid ~ .underline:before{
    transform: scaleX(1);
}
.box .register input{
    border: none;
    outline: none;
    color: #fff;
    background: burlywood;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}
